home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / texts / mpindx50.lha / MPIndex50Src.lha / smakefile < prev   
Makefile  |  1996-05-14  |  3KB  |  115 lines

  1. # MPIndex - Amiga Guide Indexing program
  2. # Copyright (C) © 1995 Mark John Paddock
  3.  
  4. # $VER: MPIndex_smakefile 5.0 (9.5.96)
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # mpaddock@cix.compulink.co.uk
  21. # mark@topic.demon.co.uk
  22.  
  23. # Make file for MPIndex and SAS/C 6.55
  24.  
  25. # various defines
  26. OS        = sc/
  27. GB        = GB/
  28. I         = .info
  29. HS        = sh/
  30. DS        = sd/
  31.  
  32. # Compilation flags
  33. # Normal compile
  34. NORMFLAGS  = PARM=R CONSTLIB NOSTKCHK STRMER UCHAR STREQ OPT OPTGO\
  35.  CNEST NOMINC STRCONS VERBOSE STRSECT=CODE NOCHKABORT\
  36.  DBG=L WARN=ALL ERR=ALL IGN=104,51,148,190,61,165,120,212,112
  37. # Compile math = FFP 000
  38. CCFLAGS000 = $(NORMFLAGS) CPU=ANY MATH=FFP OPTSIZE
  39. # Compile render for 000
  40. CCFLAGS000R = $(NORMFLAGS) CPU=68000 MATH=FFP OPTTIME
  41.  
  42. # default compilation
  43. .c.o:
  44.    sc $(CCFLAGS000) $*.c
  45.  
  46. .asm.o:
  47.     asm -d $*.asm
  48.  
  49. MPINDDIST = COPYING RunMPIndex.guide MakeMPIndex.guide RunMPIndex MakeMPIndex Docs.Index MPIndex50Src.lha RunMPIndex$(I)
  50.  
  51. MPINDSRC = $(HS)MakeMPIndex.c $(HS)RunMPIndex.c $(HS)MPIndex.c $(HS)MPIndex.h smakefile $(GB)MPIndex.gui $(OS)sprintf.c\
  52.  lha/emptyfile $(DS)MakeMPIndex.texi $(DS)RunMPIndex.texi RunMPIndex$(I)
  53.  
  54. #stuff to delete
  55. DELETE1   = \#?/\#?.o \#?/\#?.ld RunMPIndex.guide MakeMPIndex.guide
  56.  
  57. # Default is to generate Source and Object lha
  58. Everything: lha/MPIndex50.lha
  59.  
  60.  
  61. # Delete all the built files (except two above) to force a recompile
  62. Delete:
  63.    -delete $(DELETE1)
  64.  
  65. lha/MPIndex50.lha: $(MPINDDIST)
  66.     -delete lha/MPIndex50.lha
  67.     lha -a -F u -x lha/MPIndex50.lha <@<
  68.     $(MPINDDIST)
  69.     <
  70.  
  71. MPIndex50Src.lha: $(MPINDSRC)
  72.     -delete MPIndex50Src.lha
  73.     lha -a -F u -x MPIndex50Src.lha <@<
  74.     $(MPINDSRC)
  75.     <
  76.  
  77. RunMPIndex.guide: $(DS)RunMPIndex.texi
  78.    Makeinfo --amiga-39 -o RunMPIndex.guide $(DS)RunMPIndex.texi
  79.  
  80. MakeMPIndex.guide: $(DS)MakeMPIndex.texi
  81.    Makeinfo --amiga-39 -o MakeMPIndex.guide $(DS)MakeMPIndex.texi
  82.  
  83. # Common stuff
  84. $(OS)sprintf.o: $(OS)sprintf.c
  85.  
  86. # Guide index stuff
  87.  
  88. $(HS)MakeMPIndex.ld: $(HS)MakeMPIndex.c
  89.     sc $(CCFLAGS000R) StackCheck StackExtend link $(HS)MakeMPIndex.c to $(HS)MakeMPIndex.ld
  90.  
  91. MakeMPIndex: $(HS)MakeMPIndex.ld
  92.     slink from $(HS)MakeMPIndex.ld to MakeMPIndex stripdebug noicons
  93.  
  94. $(HS)MPIndex.o: $(HS)MPIndex.c $(HS)MPIndex.h
  95.     sc $(CCFLAGS000R) $*.c
  96.  
  97. $(HS)RunMPIndex.o: $(HS)RunMPIndex.c $(HS)MPIndex.h
  98.     sc $(CCFLAGS000R) $*.c
  99.  
  100. $(HS)RunMPIndex.ld: $(HS)MPIndex.o $(HS)RunMPIndex.o $(OS)sprintf.o
  101.    slink <WITH <
  102.    FROM lib:c.o $(HS)MPIndex.o $(HS)RunMPIndex.o $(OS)sprintf.o
  103.    LIBRARY lib:sc.lib LIB:amiga.lib
  104.    TO $(HS)RunMPIndex.ld SC SD BATCH
  105.    VERBOSE
  106.    ADDSYM
  107.    DEFINE @__chkabort=@__dummy
  108.    <
  109.  
  110. RunMPIndex: $(HS)RunMPIndex.ld
  111.     slink from $(HS)RunMPIndex.ld to RunMPIndex stripdebug noicons
  112.  
  113. Docs.Index: MakeMPIndex RunMPIndex.guide MakeMPIndex.guide
  114.     MakeMPIndex Docs.Index RunMPIndex.guide MakeMPIndex.guide
  115.